package com.carrental.api.oms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.carrental.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 出车检查单
 * </p>
 *
 * @author 梁毅
 * @since 2022-03-07 23:16:08
 */
@Getter
@Setter
@TableName("oms_return_check")
@ApiModel(value = "OmsReturnCheck对象", description = "出车检查单")
public class OmsReturnCheck extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("还车检查单id")
    private Long returnCheckId;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("车辆id")
    private Long carId;

    @ApiModelProperty("还车日期")
    private LocalDateTime returnDate;

    @ApiModelProperty("还车车况描述")
    private String description;

    @ApiModelProperty("还车时剩余油量/电量")
    private String surplusEnergy;

    @ApiModelProperty("是否发生交通事故")
    private Boolean trafficAccident;

    @ApiModelProperty("交通事故描述")
    private String trafficAccidentDescription;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除人标识[外键]")
    private Long deletedId;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除时间")
    private LocalDateTime deletedTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("是否删除")
    private Boolean isDeleted = false;


}
